import request from '../utils/request'
// tab列表
export const getTab=()=>{
     return request.get('/user/channels')
    }
// 获取全部新闻频道
export const getChannel=()=>{
     return request.get('/channels')
}
// 删除频道
export const deletechannels=(data)=>{
     return request.delete(`/user/channels/${data}`)
}
// 修改频道
export const patchchannels = (data)=>{
     return request({
          url:'/user/channels',
          data,
          method: 'PATCH'
     })
}
// 推荐列表
export const getArticles = (data)=>{
     return request.get('/articles',data)
}
// 文章详情
export const getarticles =(data)=>{
     return request.get(`/articles/${data}`)
}
// 获取评论和回复
export const getCommentspl=(data)=>{
     return request.get('/comments',data)
}